<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="commons/include::html">
</head>
<body>
<div class="row-fulid" style="text-align: center;margin:0 auto;width: 1000px; ">
    <h1>ADD</h1>
    <div class="col-md-12">
        <form th:action="@{/api/userController/userlist}" method="post">
            <input name="magent"></input>
            <button type="submit">生成javaRepository</button>
        </form>
    </div>
</div>
</body>
</html>

<script>
        $.ajax({
            url: root+'/userController/userlistpaged',
            method: 'post',
            //headers:getHeaderCsrf(),
            contentType: 'application/json',
            data:JSON.stringify({size:10,page:0}),
            success:function(data){
                debugger;
                var s=data;
//                $bootstrapTable.bootstrapTable("load",s.rows);
//                $bootstrapTable2.bootstrapTable("load",s);
                var info=eval(data);
            }
        });

</script>